<?php defined('SEJUJOPEFDNGJSL') or exit('Access denied');
$arrn = getnews();
$rns = $arrn[0];
?>
<body class="bg-df" style="background: #d9e0e7!important;padding-top:50px;">
<style type="text/css">
    .coverdesc {
        position: fixed;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, .8);
        top: 0px;
        left: 0px;
        z-index: 999999999999999999;
        overflow-y: scroll;
    }

    .coverdesc h1 {
        font-size: 30px;
        color: #fff;
        text-align: center;
        font-weight: 900;
        margin-top: 50px;
        margin-bottom: 30px;
    }

    .coverdesc .incover {
        width: 90%;
        max-width: 1200px;
        height: auto;
        margin: 0 auto;
        overflow: hidden;
        font-size: 16px;
        color: #fff;
        line-height: 24px;
    }

    .coverdesc .incover p {
        text-indent: 2em;
        margin-top: 10px;
    }

    .layui-layer-desc {
        width: 100% !important;
        left: 0px !important;
        top: 0px !important;
    }

    .coverdesc .yebut {
        width: 150px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        font-size: 16px;
        color: #fff;
        border-radius: 3px;
        background: rgba(1, 196, 196, .7);
        margin: 0 auto;
        margin-top: 20px;
        margin-bottom: 40px;
        cursor: pointer;
    }
</style>
<!-- <div class="coverdesc">
    <div class="incover">
        <h1>凯莎国际投资风险提示书：</h1>
        <p>
            市场有风险，投资需谨慎！
        </p>
        <p>
            凯莎国际提供平台，投资者要理性判断和选择，理性操作，如果您不能承担市场风险，请您不要注册、登录、修改个人资料 等。
        </p>
        <p>
            投资人应当以自己合法拥有的资金投资，不得汇集他人资金参与投资项目。
        </p>
        <p>
            投资人承诺并保证已认真阅读本投资风险提示书，理解上文所揭示的所有风险，并愿意承担投资风险可能造成的损失，大 风车不对投资人的投资损失承担任何责任。
        </p>
        <p>
            祝您投资愉快，生活幸福！
        </p>
        <p>
            凯莎国际  客服部
        </p>
        <p>
            2017年2月21日
        </p>
    </div>
    <div class="yebut">点击确定</div>
</div> -->
<script type="text/javascript">
    $(".yebut").click(function () {
        $(".coverdesc").hide();
    });
</script>
<style>
    .navbar-fixed-top {
        margin-left: 220px;
    }

    @media screen and (min-width: 320px) and (max-width: 480px) {
        .navbar-fixed-top {
            margin-left: 0px;
        }

        .sidebar {
            padding-top: 45px;
        }
    }

</style>
<div id="page-container" class="fade">
    <div class="navbar navbar-default navbar-fixed-top" style="border-color:transparent;background: transparent;">
        <!-- begin container-fluid -->
        <div class="container-fluid">
            <!-- begin mobile sidebar expand / collapse button -->
            <div class="navbar-header navbar-default navbar-fixed-top" style="border-color:transparent;">
                <div class="row" style="margin-right: 0;margin-left: 0;">
                    <div class="col-md-9 col-xs-9">
                        <div class="pbottom"
                             style="padding:12px 0;line-height:20px;color: #474b58;font-size:14px;padding-left:5px;">
                            <?php echo $GLOBALARR['sytitle']; ?>系统欢迎“<span
                                    style="color: #474b58;font-size:14px;"><?php echo $r['uname']; ?></span>”回来！
                        </div>
                    </div>
                    <div class="col-md-3  col-xs-3 pull-right">
                        <div class="pull-right">
                            <button type="button" class="navbar-toggle" data-click="sidebar-toggled"
                                    style="margin-right: 5px;padding:6px;margin-top: 9px;">
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
                        </div>
                        <style type="text/css">
                            /* .blogo{line-height:45px;padding:0 5px;}
                             .blogo img{width: 110px;}
                     @media screen and (min-width:320px) and (max-width:480px){
                             .blogo{}
                             .blogo img{width:70px;}
                             .pbottom{padding-bottom:0px!important;padding-top:5px!important;}
                             .bg-df{padding-top: 80px!important;}
                         }*/
                        </style>
                        <!-- <div class="pull-right blogo">
                            <a href="http://www.biguyuan.com/" target="_blank">
                                <img src="theme/images/blogo.png" alt="">
                            </a>
                        </div> -->
                    </div>
                </div>
                <!-- <div class="pull-left pbottom" style="padding:12px 0;line-height:20px;color: #999;font-size:14px;padding-left:5px;">
                        凯莎国际系统欢迎“<span style="color: #e24a36;font-size:14px;"><?php echo $r['uname']; ?></span>>”回来，投资请使用闲置资金！
                    </div> -->


            </div>
            <!-- end mobile sidebar expand / collapse button -->
        </div>

        <!-- end container-fluid -->
    </div>
    <style>
        .banner_index {
            width: 100%;
            height: 353px;
            background: #0b989c url('theme/images/main_bg.png') no-repeat center center/cover;
            position: relative;
        }

        .blue {
            display: inline-block;
            width: 60px;
            height: 20px;
            text-align: center;
            line-height: 20px;
            color: #fff;
            background-color: #5ddd02;
        }

        .orange {
            display: inline-block;
            width: 60px;
            height: 20px;
            text-align: center;
            line-height: 20px;
            color: #fff;
            background-color: #f89d1b;
        }

        .green {
            display: inline-block;
            width: 60px;
            height: 20px;
            text-align: center;
            line-height: 20px;
            color: #fff;
            background-color: #9c9c9c;
        }

        .gray {
            display: inline-block;
            width: 60px;
            height: 20px;
            text-align: center;
            line-height: 20px;
            color: #fff;
            background-color: #42abec;
        }

        .img_new {
            display: inline-block;
            margin-top: -2px;
            width: 20px;
            border-radius: 50%;
        }

        @media screen and (min-width: 320px) and (max-width: 480px) {
            .banner_index {
                width: 100%;
                height: 180px;
                background: #0b989c url('theme/images/main_bg.png') no-repeat center center/cover;
                position: relative;
            }

            .blue {
                display: inline-block;
                width: 80px;
                height: 20px;
                text-align: center;
                line-height: 20px;
                color: #fff;
                background-color: #5ddd02;
                margin-bottom: 3px;
            }

            .orange {
                display: inline-block;
                width: 80px;
                height: 20px;
                text-align: center;
                line-height: 20px;
                color: #fff;
                background-color: #f89d1b;
                margin-bottom: 3px;
            }

            .green {
                display: inline-block;
                width: 80px;
                height: 20px;
                text-align: center;
                line-height: 20px;
                color: #fff;
                background-color: #9c9c9c;
                margin-bottom: 3px;
            }

            .gray {
                display: inline-block;
                width: 80px;
                height: 20px;
                text-align: center;
                line-height: 20px;
                color: #fff;
                background-color: #42abec;
                margin-bottom: 3px;
            }
        }
    </style>
    <div class="content" style="padding:0;margin-top: -6px;">
        <div class="banner_index">
            <div style="width:100%;height: 30px;line-height: 30px;background-color: rgba(0,0,0,0.5);color:#fff;font-size: 12px;position:absolute;bottom: 0;left:0;padding-left: 25px;">
                <img src="theme/images/newicon.png" alt="" style="vertical-align: middle;margin-right:3px;width:18px;">
                <div style="display: inline-block;min-width:200px;width:auto;">
                 <a href="<?php echo SITEINDEX . '?lsact=newsview&veid=' . $rns['id'] ?>"
                   style="color: #fff;"><?php echo $rns['title']; ?></a>
                <span style="font-size: 12px;color: #fff;margin-left:10px;"><?php echo date("Y-m-d", $rns['art_time']); ?></span>
                </div>
                <a href="<?php echo SITEINDEX?>?lsact=gonggao" style="color:#fff;margin-left: 10px;">查看更多 >></a>
            </div>
        </div>
        <div class="row xnb" style="text-align: center;padding:25px 0;background-color: #f1f1f3;color:#474b58;">
            <div class="col-md-4 col-xs-4" style="border-right:1px dashed #a4a5aa;">
                <span class="blue">CNY</span>
                <span class="orange">BTC</span>
                <span style="display: inline-block;font-size: 13px;">
                <img src="theme/images/bitcoin.png" alt="" class="img_new">
                 <?php echo getprice_rate()*getprice_btc();?>
                </span>
            </div>
            <div class="col-md-4 col-xs-4" style="border-right:1px dashed #a4a5aa;">
                <span class="blue">CNY</span>
                <span class="green">LTC</span>
                <span style="display: inline-block;font-size: 13px;">
                <img src="theme/images/litecoin.png" alt="" class="img_new">
                <?php echo (getprice_rate()*getprice_ltc());?>
            </span>
            </div>
            <div class="col-md-4 col-xs-4">
                <span class="blue">CNY</span>
                <span class="gray">VIC</span>
                <span style="display: inline-block;font-size: 13px;">
                <img src="theme/images/pbccoin.jpg" alt="" class="img_new">
                <?php echo getprice();?>
                </span>
            </div>
        </div>
    </div>
    <div id="content" class="content">
    <style>
  .table1{width:100%;background-color: #262A34;padding: 15px;}
  .bg_span{background-color: #5DDD02;display: inline-block;padding:0px 10px;border-radius: 2px;color: #fff;}
  .container_table{background-color: #31A0E6;min-height: 200px;position:relative;padding:15px;}
  .sj{display: inline-block;width:0;height:0;border-width: 9px;border-style: solid;border-color: transparent transparent #31A0E6 transparent;position:absolute;top:-18px;left:25px;z-index: 99;}
  .title{color:#fff;line-height: 25px;vertical-align: middle;font-size: 14px;}
  .i{display: inline-block;width:25px;height:25px;border-radius: 50%;border:3px solid #fff;background: url('theme/images/pbccoin.jpg') no-repeat;background-size: 100%;vertical-align: middle;}
  .container_div{border:1px solid rgba(255,255,255,0.2);margin-top: 10px;margin-bottom: 25px;overflow: hidden;}
  .container_div .ul{overflow: hidden;border-right:1px solid rgba(255,255,255,0.2);width:auto;float: left;}
  .container_div .ul li{float: left;padding: 15px 10px;color:#fff;font-size: 20px;}
  .container_div .ul li span{display: block;font-size: 12px;}
  .container_div .fr{float: right;font-size:30px;color:#fff;margin-right: 15px;margin-top: 10px;}
  .container_table .btn_new{width: 100%;overflow: hidden;}
  .container_table .btn_new a{display: inline-block;width: 160px;height: 55px;border:1px solid rgba(255,255,255,0.2);text-align: center;line-height: 55px;color:#fff;float: right;margin-left: 10px;font-size: 18px;}
  .table2{background: #6152A4;padding:15px;min-height: 278px;}
  .table2 .con{width:100%;margin-bottom: 10px;color:#fff;font-size: 12px;overflow: hidden;}
  .table2 .con .div{display: inline-block;width:48%;border:1px solid #7F70BE;text-align: right;}
  .table2 .con .div ul li{padding:10px 5px;border-bottom:1px solid #7F70BE;font-size: 14px;}
  .table2 .con .div ul li:last-child{border-bottom: none;}
  .table2 .btn_new{width: 100%;overflow: hidden;}
  .table2 .btn_new a{display: inline-block;width:48%;height: 55px;border:1px solid #7F70BE;text-align: center;line-height: 55px;color:#fff;float: right;font-size: 18px;}
  .abs{position: absolute;bottom:84px;right:15px;font-size: 10px;}
  .abs1{right:150px;}
  .container_div .ul .color_li{color:#a2d7fd;padding-top:25px;font-size: 20px}
   @media screen and (min-width: 320px) and (max-width: 480px) {
    .title{font-size: 12px;}
    .container_table{padding:5px;}
    .container_div .ul{width:100%;border-bottom: 1px solid rgba(255,255,255,0.2)}
    .container_div .ul li{font-size: 16px;padding:3px;}
    .container_div .ul .color_li{color:#a2d7fd;padding-top: 15px;font-size: 16px;}
    .container_div .fr{margin-top: 7px;margin-bottom: 15px;font-size: 20px;}
    .container_table .btn_new a{width:30%;height: 35px;line-height: 35px;}
    .abs{position: absolute;bottom:87px;right:15px;font-size: 10px;}
    .abs1{right:130px;}
    .table2{min-height: 105px;margin-top: 15px;}
    .table2 .btn_new a{height: 35px;line-height: 35px;}
   }
</style>
<?php 
$times = strtotime(date('Y-m-d',intval(time())));
$timed = strtotime(date('Y-m-d',intval(time()-24*3600)));
$sql = "select sum(amount) as t from ld_prize_list where prize_option = 51 and uid = '".$r['id']."' and prize_ltime<'".$times."' and prize_ltime>'".$timed."'" ;
$db->query($sql,2);
$arr =$db->rs;
$shouyi = $arr['t'];
?>
<div class="indent-r-kuai-image clear">
  <div class="row" style="margin-bottom: 15px;">
    <div class="col-md-8">
    <div class="table1">
      <span class="bg_span">VIC</span>
    </div>
    <div class="container_table">
          <span class="sj"></span>
          <p class="title"><i class="i"></i>
          投资业务 VIC
          <span style="float: right;">价格：1 VIC = <?php echo getprice();?> CNY</span>
          </p>
          <div class="container_div" >

          <span class="fr"><?php echo $r['cash_purse']?> <span style="color:#8acbf9;">VIC</span></span>
          <div class="abs abs1" style=""><span style="padding:4px 8px;display: inline-block;background:#880289;color:#fff;border-radius: 3px;">昨日收益</span><span style="padding:4px 8px;display: inline-block;background:#fff;border-radius: 3px;color:#880289;"><?php if ($shouyi){echo $shouyi;}else {echo '0.00';}?></span></div>
          <div class="abs" style=""><span style="background: #9ad130;padding:4px 8px;display: inline-block;color:#fff;border-radius: 3px;">累计收益</span><span style="padding:4px 8px;display: inline-block;background:#fff;border-radius: 3px;color:#9ad130;"><?php echo  $r['lixi_crash']; ?></span></span></div>
          </div>
          <div class="btn_new">
            <a href="<?php echo SITEINDEX?>?lsact=cunkuan" style="float:right;" class="btn_newa">锁仓生息</a>
            <a href="<?php echo SITEINDEX?>?lsact=zhuancoin" style="float: right;"class="btn_newa">提现</a>
          </div>
    </div>
    </div>
    <div class="col-md-4" style="border-radius: 3px;">
    <div class="table2">
    <div class="con">
     <div class="div">
       <ul>
         <li>LTC<br/>
         账户余额</li>
         <li><?php echo sprintf("%.6f",$r['ltc_account'])?> <span style="color:#beb3ea;">LTC</span><br/>
         ≈<?php echo round($r['ltc_account']*getprice_ltc()*getprice_rate()/getprice(),4);?> <span style="color:#beb3ea;">VIC</span></li>
       </ul>
     </div>
     <div class="div" style="float: right;">
       <ul>
         <li>BTC<br/>
         账户余额</li>
         <li><?php echo sprintf("%.6f",$r['btc_account'])?> <span style="color:#beb3ea;">BTC</span><br/>
         ≈ <?php echo round($r['btc_account']*getprice_btc()*getprice_rate()/getprice(),4);?> <span style="color:#beb3ea;">VIC</span></li>
       </ul>
     </div>
    </div>
    <div class="btn_new">
            <a href="/home.php?lsact=zhuancoin&templist=5" style="float: left;">充值</a>
            <a href="/home.php?lsact=zhuanhuan" style="float: right;">兑换VIC</a>
          </div>
    </div>
  </div>
</div>
<!-- <div class="indent-r-kuai-image clear" style="margin-top: 15px;">
    <div class="row" style="text-align: center;">
        <div class="col-md-6">
            <span class="kuai-im" style="background:#0095d8;"><a href="<?php echo SITEINDEX?>?lsact=cunkuan">
                <img src="theme/images/buticon1.png">锁仓生息</a>
            </span>
        </div>
       <div class="col-md-4">
            <span class="kuai-im" style="background:#dd1c21;"><a href="<?php echo SITEINDEX?>?lsact=productlist"><img src="theme/images/buticon3.png">共享商城</a></span>
        </div>
        <div class="col-md-6">
            <span class="kuai-im" style="background:#86c341;"><a href="<?php echo SITEINDEX?>?lsact=zhuancoin">
                <img src="theme/images/buticon2.png">虚拟币转出</a></span>
        </div>
      <div class="col-md-6">
            <span class="kuai-im im5" style="margin-right: 0px;"><a href="<?php echo SITEINDEX?>?lsact=qukuan"><img src="theme/images/getbg.png">获取帮助</a></span>
        </div>
    </div>
</div> -->

<style type="text/css">
    .indwhere{line-height: 38px;background:#fff url(theme/images/lefticon.jpg) left center no-repeat;color: #7c7c7c;font-size: 12px;padding-left: 15px;margin-bottom: 20px;}
</style>